package com.dgac.publicresource.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("order_items")
public class OrderItems {
    /**
     * 订单商品id
     */
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品数量
     */
    private Integer quantity;

    /**
     * 单个商品总价
     */
    private Long price;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
